/**
 * Definition for singly-linked list.
 * function ListNode(val) {
 *     this.val = val;
 *     this.next = null;
 * }
 */
/**
 * @param {ListNode} head
 * @return {ListNode}
 */
 var deleteListNode = function(head) {
  let t = head
  let dummy = new ListNode(-1), cur = dummy
  let cnt = 1
  while(t){
    if(cnt % 2 !== 0){
      cur.next = new ListNode(t.val)
      cur = cur.next
    }
    cnt++
    t = t.next
  }
  return dummy.next
};